how to move an image up in css

85

<html>
   <head>
   </head>

   <body>
      <div style = "position:relative; left:80px; top:2px; background-color:yellow;">
         This div has relative positioning.
      </div>
   </body>
</html>
img {
    margin-right: 4px;
    position: relative;
    top: 6px
}

Comments

Submit
0 Comments